package net.mikoo.seals.biz.service;

import net.mikoo.seals.biz.common.WechatLoginParameter;
import net.mikoo.seals.model.Party;
import net.mikoo.seals.model.UserLogin;

public interface UserLoginServices {
	
	public Party authLogin(String username, String password, String partyType);
	
	public Party wechatLogin(WechatLoginParameter parameter);
	
	public void wechatLogout(String userLoginId);
	
	public void changePassword(String username,String newPassword, String oldPassword);
	public void changePasswordByForget(String username,String newPassword);
	
	public boolean isRightByPassword(String userLoginId, String currentPassword);
	
	public UserLogin loadByPrimaryKey(String userLoginId);
	
	public void deleteByPartyId(Long partyId);
	
	public void updateByPartyId(UserLogin userLogin);

	public Boolean checkUsernameExist(String verifykey, String excludeKey, String type);

	public Party register(String username, String password);

	public  void resetPassword(String username, String newPassword);
	
}
